﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace KTV.after
{
    public partial class xingzen : Form
    {
        public xingzen()
        {
            InitializeComponent();
        }

        private void xingzen_Load(object sender, EventArgs e)
        {
           
        }


        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// 确定按钮事件保存增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text != null && textBox2.Text != null && textBox3.Text != null)
            {

                Sqlyuju sq = new Sqlyuju();
                string sql2 = "  insert into [DB_A2011_G02].[dbo].[geshoubiao]([name] ,[liebie],[sex],[zhaopian])values ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "');";
                sq.ExeInDeUp(sql2);

            }
            else {

                MessageBox.Show("所有信息不能为空","温馨提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);

            }
            
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }
    }
}
